package com.foreknow.demo4;

import java.util.Scanner;

public class TestMethod6 {

    public static void A() {
        System.out.println("A..................");
    }

    public static void B(int a) {
        System.out.println(a);
    }

    public static void C(String name) {
        System.out.println("您的名字是：" + name);
    }

    public static void D(int[] array) {
        for (int i = 0;i<array.length;i++) {
            System.out.println(array[i]);
        }
    }

    public static void E(Scanner input) {
        System.out.println("请输入用户名：");
        String username = input.next();
        System.out.println(username);
    }

    public static void main(String[] args) {
        A();
        B(100);
        C("Tom");
        int[] arr = {1,2,3,4,5,6};
        D(arr);
        Scanner ii = new Scanner(System.in);
        E(ii);

    }
}











